home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / scsh-0.4 / scsh-0 / scsh-0.4.2 / scsh / scsh_aux.h < prev    next >
Text File  |  1995-10-13  |  287b  |  8 lines

  1. /* String equality predicate. */
  2. #define streq(a,b) (!strcmp((a),(b)))
  3.  
  4. #define Alloc(type)     ((type *) malloc(sizeof(type)))
  5. #define Malloc(type,n)    ((type *) malloc(sizeof(type)*(n)))
  6. #define Free(p)        (free((char *)(p)))
  7. #define Realloc(type,p,n) ((type *) realloc(p, (n)*sizeof(type)))
  8.